STEP 3: Now we'll ask the user a question.

Remember, the ask command takes in user input, so we can use it later in our program.

  • Let's pause the stage beforehand. In drag in Wait.
  • Then, drag out Ask. Change the question in quotes to "What's your name?"
  • Change the input variable to the left of the equal sign from choice to user_name.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)